﻿using Microsoft.Extensions.Logging;
using System;

namespace Cngot.Extensions.Logger
{
    public class LoggerMessage
    {
        public TraceOption Trace { get; set; }

        public EventId EventId { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// 日志级别
        /// </summary>
        public string LogLevel { get; set; }
        /// <summary>
        /// 状态值
        /// </summary>
        public object State { get; set; }
        /// <summary>
        /// 异常
        /// </summary>
        public ErrorMessage? Error { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public object? Message { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTimeOffset CreateTime { get; set; } = DateTimeOffset.Now;
    }
}
